﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace AP.Framework.Infrastructure.Entities
{
    public class cms_Product
    {

        public int ID { get; set; }
        public int ProductCategoryId { get; set; }
        [Required(ErrorMessage = "产品名称不能为空!")]
        public string Name { get; set; }
        public decimal? Price { get; set; }
        public string Photo { get; set; }
        public string PhotoLarge { get; set; }
        public string Description { get; set; }
        public bool? IsOpenPrice { get; set; }
        public bool? IsPublic { get; set; }
        [Range(1, 9999, ErrorMessage = "只能输入数字!")]
        public int? Sequence { get; set; }
        public bool IsDisable { get; set; }
        public string CreateBy { get; set; }
        public DateTime? CreateTime { get; set; }
        public string ModifyBy { get; set; }
        public DateTime? ModifyTime { get; set; }
    }
}
